Question: Madras Cafe is a 2013 Indian political thriller spy film, the film deals with an Indian Army special officer who is appointed by what, which is the primary foreign intelligence agency of India?

Context articles: Madras Cafe
Bangladeshi intelligence community
Grzegorz Małecki
Rosenholz files
Samba spy scandal
Australian Secret Intelligence Service
Research and Analysis Wing
Security agency
First Chief Directorate
Charbatia Air Base

Madras Cafe is a 2013 Indian political thriller spy film directed by Shoojit Sircar and starring John Abraham, Nargis Fakhri, Rashi Khanna and Leena Paul in lead roles.
 The film is set in the late 1980s and early 1990s, during the time of Indian intervention in the Sri Lankan civil war and assassination of former Indian prime minister Rajiv Gandhi.
 The film deals with an Indian Army special officer who is appointed by the intelligence agency R.A.W. to head covert operations in Jaffna shortly after Indian peace-keeping force was forced to withdraw.
The Bangladesh intelligence community is a group of several intelligence agencies charged with carrying out intelligence gathering activities considered necessary for the conduct of foreign relations and national security of Bangladesh including other functions vital for the national security of Bangladesh.
 Member organizations of the Bangladesh intelligence community include military intelligence of Bangladesh Army, Navy, Air Force, National Police and civilian intelligence and analysis offices within executive ministries.
 The I.C. is headed by a Director heading each Intelligence agency, who reports to the Prime Minister of the Bangladesh.The organisation and structure of the modern Bangladesh intelligence community has developed its structures from agencies that continued to function after Independence from Pakistan.
 Bangladesh intelligence agencies today are the National Security Intelligence, the Special Branch, Army Intelligence, Air Force Intelligence, Naval Intelligence and the Directorate General of Forces Intelligence (DGFI).
 During the 1971 Bangladesh Independence War, the Bangladesh Forces in the 11 BDF Sectors also developed an intelligence network within its organisation of guerrilla combat teams that provided the sectors with essential local intelligence.
 However, the intelligence agency personnel have been and still continues to be recruited and trained from within the particular agency.
 Among their varied responsibilities, the members of the Community collect and produce foreign and domestic intelligence, contribute to military planning, and perform espionage.
Grzegorz Małecki (born 18 October 1967) – is an official of polish intelligence and security services, diplomat, colonel, such as the Office for State Protection (UOP), the Internal Security Agency (ABW) and the Foreign Intelligence Agency (AW).
 In 2016 he was the Head of the Foreign Intelligence Agency of the Republic of Poland.
The Rosenholz files are a collection of 381 CD-ROMs containing 280,000 files with information on persons who were sources and targets or employees and helpers in the focus of the "Hauptverwaltung Aufklärung" ("HVA", Main Directorate for Reconnaissance), the primary foreign intelligence agency of the former German Democratic Republic (East Germany).
 At the beginning one thought that the files mostly contain the real names of agents who worked for the HVA in former West Germany.
 Later it came clear that at least 90% of the persons never worked for or with the HVA.
The Samba Military Spy Scandal'The Indian Army's Darkest Chapter' was a cold war military intelligence program which eventually emerged as a scandal in 1979.
 According to the Indian Army, the military program was run by the MI of Pakistan to seek information on Indian Army's deposition in Western India.
 The Indian Army and associated intelligence agencies led the arrest of 168 active duty army officers and personnel on suspicion of working for the Military Intelligence of the Pakistan Army from Samba in the northern disputed state of Jammu & Kashmir.
 Samba, Jammu is a sleepy town in the Jammu region of the state.
 The region bordering with Pakistan.
 Revelation of scandal led to a serious breach in foreign relations of India and Pakistan.
The Australian Secret Intelligence Service (ASIS; ) is Australia's foreign intelligence agency.
 ASIS was formed in 1952, but its existence remained secret even within the Government until 1972.
 ASIS is part of the Australian Intelligence Community responsible for the collection of foreign intelligence, including both counter-intelligence and liaising with the intelligence agencies of other countries.
 In these roles, ASIS is comparable to the British Secret Intelligence Service (MI6) and the American Central Intelligence Agency (CIA).
The Research and Analysis Wing (R&AW or RAW) is the primary foreign intelligence agency of India.
 It was established in 1968 following the intelligence failures of the Sino-Indian and Indo-Pakistani wars, which persuaded the Government of India to create a specialised, independent agency dedicated to foreign intelligence gathering; previously, both domestic and foreign intelligence had been the purview of the Intelligence Bureau.
A security agency is a governmental organization which conducts intelligence activities for the internal security of a nation.
 They are the domestic cousins of foreign intelligence agencies, and typically conduct counterintelligence to thwart other countries' foreign intelligence efforts.
 For example, the United States Federal Bureau of Investigation (FBI) is the internal intelligence, security and law enforcement agency, while the Central Intelligence Agency (CIA) is an external intelligence service, which deals primarily with intelligence collection overseas.
 A similar relationship exists in Britain between MI5 and MI6.
The First Main Directorate (or First Chief Directorate, Russian: Первое главное управление, "Pervoye glavnoye upravleniye") of the Committee for State Security of the USSR (PGU KGB) was the organization responsible for foreign operations and intelligence activities by providing for the training and management of covert agents, intelligence collection administration, and the acquisition of foreign and domestic political, scientific and technical intelligence in the Soviet Union.
 The First Chief Directorate was formed within the KGB directorate in 1954, and after the collapse of the Soviet Union was renamed as the Central Intelligence Service and finally the Foreign Intelligence Service (SVR RF).
 Although the agency "SVR" restyle in 1991 implies a generic overseas surveillance activity, the primary foreign intelligence service in Russia and the Soviet Union has been the GRU, a military intelligence organization and special operations force shrouded in secrecy, most famed for stealing the blueprints of the atomic bomb during the Manhattan Project and barring entry into its headquarters to anyone, even the leader of the Soviet Union proper, without a formal authentication.
Charbatia Air Base is located approximately 10 km north of Cuttack, Odisha in eastern India.
 It is an aerial reconnaissance post of the intelligence agency's aviation unit, the Aviation Research Centre (ARC).
 The Research and Analysis Wing, India's primary foreign intelligence agency, operates intelligence collection aircraft through the ARC.
 The aircraft are fitted with electronic surveillance equipment and long range cameras capable of taking pictures of targets from high altitudes.
 The base was built with the assistance of the Central Intelligence Agency in the early 1960s and was used for aerial surveillance and intelligence gathering of China's strategic forces.
 The first aircraft was delivered in the mid 60's and was a World War II vintage C-46 which was outfitted with an oxygen distribution system for operator and flight personnel along with surveillance electronics and recording equipment at the Air America base in Tainan, Taiwan.
 The installation was supervised by the design engineer, a Mr. Kent Williamson.
 Mr. Williamson, along with other experienced personnel also deployed to Charbatia to train the first operator and maintenance personnel.